#ifndef SETWIG_H
#define SETWIG_H

#include <QWidget>
#include "globalval.h"
#include "mqtthandler.h"
#include <QPainter>
#include <QDebug>
#include <QJsonDocument>
#include <QJsonObject>

namespace Ui {
class SetWig;
}

class SetWig : public QWidget
{
    Q_OBJECT

public:
    explicit SetWig(QWidget *parent = 0);
    ~SetWig();
private slots:
    void on_sanrebutton_clicked();

    void on_jiechubutton_clicked();

    void on_jingbaobutton_clicked();

    void on_shidubutton_clicked();

    void on_LEDcheck_1_clicked();

    void on_LEDcheck_2_clicked();

public slots:

    void wendu(const QByteArray &msg);

    void shidu(const QByteArray &msg);

private:
    Ui::SetWig *ui;
    bool sanre_value;
    bool jiechu_value;
    bool jingbao_value;
    bool shidu_value;
};

#endif // SETWIG_H
